package com.zhanghu.backendZray.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.zhanghu.backendZray.annotation.JsonSensitive;
import com.zhanghu.backendZray.annotation.TypeChange;
import com.zhanghu.backendZray.strategy.DesensitizedStrategy;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * daily_plan
 * @author 
 */
@Data
public class DailyPlan extends BaseEntity implements Serializable {
    private Long id;

    /**
     * 人员id
     */
    private Integer userId;

    /**
     * 人员姓名
     */
    @JsonSensitive(strategy = DesensitizedStrategy.USER_NAME)
    private String userName;

    /**
     * 标题
     */
    private String title;

    /**
     * 内容
     */
    private String content;

    /**
     * 任务类型：0 记忆任务；1 定时任务
     */
    @TypeChange(replace = {"0_记忆任务","1_定时任务"})
    private Byte taskType;

    /**
     * 记忆开始时间
     */
    private LocalDate rememberStartDate;

    /**
     * 定时任务时间
     */
    private LocalDateTime scheduledTaskDateTime;

    /**
     * 提前几分钟提醒
     */
    private Byte aheadMinutes;

    /**
     * 备注
     */
    private String remark;



    /**
     * 是否已生成任务
     */
    private Boolean createdTask;

    private static final long serialVersionUID = 1L;
}